﻿using AbsFactory.Cars;
using AbsFactory.Factories;

namespace AbsFactory
{
    class Client
    {
        private AbstractCar _abstractCar;
     
        public Client(AbstractCarFactory carFactory)
        {
            _abstractCar = carFactory.CreateCar();
           
        }
        public void Run()
        {
            _abstractCar.StartMove();
        } 
    }
}
